package com.example.clients;

import com.example.domain.User;
import com.example.domain.UserResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")  //发送请求时的服务名称
public interface UserClient {
    @GetMapping("/user/gainUser")
    UserResult gainUser();
    @GetMapping("/user/test/{username}")
    User testServer(@PathVariable String username);

}
